/*
 * UserRole.java 
 * Copyright(c) 2015 Treebear
 * ALL Rights Reserved.
 */
package org.ft.domain.entities;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ft.mybatis.domain.AbstractAuditLongEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @copyright (C), 2015-2019, XXX有限公司
 * @fileName: UserRole
 * @author: 李阳
 * @date: 2019-06-26 10:33:07
 * @description:
 * @history: <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_user_role")
public class UserRoleEntity extends AbstractAuditLongEntity {

    private static final long serialVersionUID = 1L;
    /**
     * 所属租户Id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;
    /**
     * 用户Id
     */
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 角色Id
     */
    @TableField(value = "role_id")
    private Long roleId;
    /**
     * 是否已删除
     */
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    @TableLogic
    private Boolean deleted;
    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

}